package com.stud.business.qb.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.stud.common.annotation.Excel;
import com.stud.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 学期配置对象 q_term_config
 *
 * @author Stud
 * @date 2024-03-08
 */
@Schema(description = "学期配置")
@Getter
@Setter
@TableName("q_term_config")
public class QTermConfig extends BaseEntity{

    @Excel(name = "学年")
    @Schema(description = "year")
    private Long year;

    @Excel(name = "学期类型(0:上学期 1:下学期)")
    @Schema(description = "termType")
    private Long termType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "学期开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "startTime")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "学期结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "endTime")
    private LocalDateTime endTime;

    @Excel(name = "学期天数")
    @Schema(description = "day")
    private Long day;

    @Excel(name = "总课节数")
    @Schema(description = "lessons")
    private Long lessons;

}
